package com.qianfeng.dbsm.admin.serviceimpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianfeng.dbsm.admin.dao.SysRoleDao;
import com.qianfeng.dbsm.admin.entity.SysRole;
import com.qianfeng.dbsm.admin.entity.TbMember;
import com.qianfeng.dbsm.admin.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImp extends ServiceImpl<SysRoleDao, SysRole> implements SysRoleService {
    @Autowired
    SysRoleDao sysRoleDao;
//    public List<SysRole> findAll() {
//        return  null;
//    }
//
//    public PageVo findByPage(PageInfo pageInfo) {
//        return null;
//    }

    //根据角色id查询用户
    public List<TbMember> TbMemberByRoleId(Integer id){
        List<TbMember>list = sysRoleDao.TbMemberByRoleId(id);
        return list;
    }

}
